x86/svm: Correct event injection check in svm_vmcb_restore()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 7 Apr 2017 15:38:53 +0000 (16:38 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 7 Apr 2017 16:23:19 +0000 (17:23 +0100)
commitef7f5bbf9d77062de6bdd4a5801af97b903644ac
tree3520fb0e31bbfb7594c39af4e9ca52dda8ed3c4f
parenta0b53de2426bc8ac4e9429961f66564eb2fdaf6f
x86/svm: Correct event injection check in svm_vmcb_restore()

SVM's maximum valid event type is 4.  This appears to be a straigth copy and
paste error in c/s e94e3f210a62, as VT-x's maximum is 6.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/svm/svm.c